package com.yeban.base.day03;

import java.util.Scanner;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/9/27
 */
public class If_work01 {

    public static void main(String[] args) {

        // 提示输入成绩信息
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入考试成绩：");
        int score = sc.nextInt();

        // 判断成绩级别
        if(score >= 90 && score <= 100) {
            System.out.println("成绩优秀！");
        } else if(score >= 80 && score < 90) {
            System.out.println("成绩好！");
        } else if(score >= 70 && score < 80) {
            System.out.println("成绩良！");
        } else if(score >= 60 && score < 70) {
            System.out.println("成绩及格！");
        } else {
            System.out.println("成绩不及格！");
        }

    }
}
